package com.wondertek.service.dto.app.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * @description: 修改密码
 * @author: qinjianhui
 * @create: 2024-07-17 14:17
 **/
@Data
public class AppAuthInstallerRestPasswordReq {

    /*
     * 密码
     * */
    @NotBlank(message = "password.not.null")
    @Schema(name = "newPassword",description = "密码")
    @Pattern(regexp = "^(?=.*[a-zA-Z])(?=.*\\d).{8,20}", message = "password.length")
    private String newPassword;

    /*
     * 确认密码
     * */
    @NotBlank(message = "confirm.password.not.null")
    @Schema(name = "newConfirmPassword",description = "确认密码")
    @Pattern(regexp = "^(?=.*[a-zA-Z])(?=.*\\d).{8,20}", message = "password.length")
    private String newConfirmPassword;
}

